package cineplanet.modelo;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the tab_sala database table.
 * 
 */
@Embeddable
public class TabSalaPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private int LOC_IdLocal;

	private int SAL_IdSala;

    public TabSalaPK() {
    }
	public int getLOC_IdLocal() {
		return this.LOC_IdLocal;
	}
	public void setLOC_IdLocal(int LOC_IdLocal) {
		this.LOC_IdLocal = LOC_IdLocal;
	}
	public int getSAL_IdSala() {
		return this.SAL_IdSala;
	}
	public void setSAL_IdSala(int SAL_IdSala) {
		this.SAL_IdSala = SAL_IdSala;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof TabSalaPK)) {
			return false;
		}
		TabSalaPK castOther = (TabSalaPK)other;
		return 
			(this.LOC_IdLocal == castOther.LOC_IdLocal)
			&& (this.SAL_IdSala == castOther.SAL_IdSala);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.LOC_IdLocal;
		hash = hash * prime + this.SAL_IdSala;
		
		return hash;
    }
}